home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 May: Tool Chest / Apple_Developer_Group_CD_Series_May_1995_Tool_Chest.iso / Sample Code / RAMDisk 1.1 / MakeFile < prev    next >
Encoding:
Makefile  |  1994-10-13  |  2.7 KB  |  91 lines  |  [TEXT/MPS ]

  1. #    Apple Macintosh Developer Technical Support
  2. #
  3. #    Makefile: Build Rules for RAMDisk sample code
  4. #
  5. #    by Gordon Sheridan and Jim Luther
  6. #  modified by Brian Bechtel
  7. #
  8. #    File:        Makefile
  9. #
  10. #    Copyright © 1992-1994 Apple Computer, Inc.
  11. #    All rights reserved.
  12. #
  13. #    You may incorporate this sample code into your applications without
  14. #    restriction, though the sample code has been provided "AS IS" and the
  15. #    responsibility for its operation is 100% yours.  However, what you are
  16. #    not permitted to do is to redistribute the source as "DTS Sample Code"
  17. #    after having made changes. If you're going to re-distribute the source,
  18. #    we require that you make it clear in the source that the code was
  19. #    descended from Apple Sample Code, but that you've made changes.
  20. #
  21. #    Change History (most recent first):
  22. #
  23. #         <2>     6/28/93    gs        Add StdCLib.o to RamINIT, for AddDebuggerLabels.
  24. #         <1>     6/13/93    gs        Link RamINIT with StdCLib for string routines to add label in
  25. #                                    TMON. Reorg to use :Objects: directory.
  26. #
  27.  
  28. CDevName        = RAMDisk
  29. ObjDir            = :Objects:
  30. SrcDir            = :Sources:
  31. COptions         = -r -b2  -d __DebugVersion
  32.  
  33. {ObjDir}        ƒ    {SrcDir}
  34.  
  35. {CDevName}         ƒ    {ObjDir}RamCDev        ∂
  36.                     {ObjDir}RamDRVR        ∂
  37.                     {ObjDir}RamINIT
  38.     Begin
  39.         echo include ∂"{ObjDir}RamCDev∂"∂;
  40.         echo include ∂"{ObjDir}RamDRVR∂" ∂'DRVR∂'∂;
  41.         echo include ∂"{ObjDir}RamINIT∂" ∂'INIT∂'∂;
  42.     End | Rez -o {Targ}
  43.     SetFile {Targ} -t cdev -c RDsk -a B
  44. #    Duplicate -y {Targ} "{SystemFolder}Control Panels:{Targ}"
  45.  
  46.  
  47. ############################## RamCDev Build Rules ##############################
  48.  
  49. {ObjDir}RamCDev            ƒ    {ObjDir}RamCDev.rsrc         ∂
  50.                             {ObjDir}RamCDev.c.o
  51.         Duplicate -y {ObjDir}RamCDev.rsrc {Targ}
  52.         Link -t rsrc -c RSED -rt cdev=-4064 -m MAIN -sg RamCDev -rn    ∂
  53.             {ObjDir}RamCDev.c.o                        ∂
  54.             "{Libraries}"Interface.o                ∂
  55.             "{Libraries}"Runtime.o                    ∂
  56.             -o {Targ}
  57.  
  58. {ObjDir}RamCDev.c.o        ƒ    {SrcDir}RamCDev.c RamCDev.h RamDisk.h
  59.  
  60. {ObjDir}RamCDev.rsrc        ƒ    RamCDev.r RamDisk.h
  61.         Rez -i {SrcDir} -t rsrc -c RSED -o {Targ} RamCDev.r
  62.  
  63.  
  64. ############################## RamINIT Build Rules ##############################
  65.  
  66. {ObjDir}RamINIT            ƒ    {ObjDir}RamINIT.c.o    {ObjDir}ShowIcon7.c.o
  67.     link  -rt INIT=0  -ra =16  -m main -rn    -sg MergeEverything ∂
  68.         -t rsrc -c RSED                                            ∂
  69.         {ObjDir}RamINIT.c.o                                        ∂
  70.         {ObjDir}ShowIcon7.c.o                                    ∂
  71.         "{Libraries}"Interface.o                                ∂
  72.         "{Libraries}"Runtime.o                                    ∂
  73.         -o {Targ}
  74.  
  75.  
  76. {ObjDir}RamINIT.c.o        ƒ    RamDisk.h
  77.  
  78.  
  79. ############################## RamDRVR Build Rules ##############################
  80.  
  81.  
  82. {ObjDir}RamDRVR        ƒ {ObjDir}RamDRVR.c.o {ObjDir}Driver.a.o
  83.     Link  -t rsrc -c RSED -rt DRVR=48 -ra =resSysHeap,resLocked -sg .RamDRVR     ∂
  84.         {ObjDir}Driver.a.o                            ∂
  85.         {ObjDir}RamDRVR.c.o                            ∂
  86. #        "{Libraries}"Interface.o                    ∂
  87.         "{Libraries}"Runtime.o                        ∂
  88.         -o {Targ}
  89.  
  90. {ObjDir}RamDRVR.c.o        ƒ    RamDisk.h
  91.